<div class="js-template">
    <?php if ($this->goods_comment->getTotalItemCount() > 0) { ?>
    <?php foreach ($this->goods_comment as $comment_value) { ?>
    <div class="page-content">
        <div class="comment-item">
            <div class="consult-q">
                <div class="head">
                    <img src="<?php echo $this->basePath((empty($comment_value['user_avatar']) ? $this->frontwebsite()->getUserIni('default_avatar') : $comment_value['user_avatar'])); ?>" width="80" height="80">
                    <strong cla><?php echo $this->frontwebsite()->userNameHide($comment_value['comment_writer']); ?></strong>
                    <i class="arrow"><b></b></i>
                </div>
                <div class="comment-content">
                    <p class="top"><span class="score "><i style="width:{point}%"></i></span><span class="icon-stat icon-stat-<?php echo $comment_value['goods_evaluation']; ?>"></span> <span class="fr"><?php echo date("Y-m-d H:i:s", $comment_value['comment_time']); ?></span></p>
                    <p ><?php echo $this->escapeHtml($comment_value['comment_body']); ?></p>
                </div>
            </div>
            <?php if($comment_value['reply_body'] != '') { ?>
                <div class="consult-a" >
                    <div class="head">
                        <img src="<?php echo $this->basePath('public/css/dbblack/img/no-img.png'); ?>" width="80" height="80">
                        <strong><?php echo $this->translate('店主'); ?></strong>
                        <i class="arrow"><b></b></i>
                    </div>
                    <div class="consult-content"><?php echo $this->escapeHtml($comment_value['reply_body']); ?>
                        <p class="tl"><?php echo date("Y-m-d H:i:s", $comment_value['reply_time']); ?></p>
                    </div>
                </div>
            <?php } ?>
        </div>
    </div>
    <?php } ?>
    <div class="page-nav"><?php echo ( count($this->goods_comment) > 0 ) ? $this->paginationControl($this->goods_comment, 'Sliding', 'site/ajax-dbpage',array('page_url'=>$this->url('frontgoods/default',array('action'=>'listComment','goods_id'=>$this->goods_id,'class_id'=>$this->class_id)), 'ajaxFunction'=>'comment_ajax_list')) : ""; ?></div>
    <?php } else { ?>
        <p><strong><?php echo $this->translate('该商品暂无评价！'); ?></strong></p>
    <?php } ?>
</div>
<script>
    $('#goods_comment_num').html('&nbsp;<a href="#goodsComment"><?php echo $this->goods_comment->getTotalItemCount(); ?><?php echo $this->translate('篇口碑报告'); ?></a>');
</script>